// 轮播图封装
import { getBannerAPI } from '@/api'
import { ref } from 'vue'
function useBanner() {
  const bannerList = ref([])
  async function getBannerList() {
    const { result } = await getBannerAPI()
    bannerList.value = result
  }
  getBannerList()
  return { bannerList }
}
export default useBanner
